﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace PROJECT_BOMBER.BLL
{
    public class Lava : ElementPhysique, ICloneable
    {
        #region Constructeur

        public Lava(int x, int y, int widthLava, int heightLava)
            : base(x, y, widthLava, heightLava)
        {
            CollisionStrategy = new DeadCollision();
        }

        #endregion


        #region ICloneable Membres

        public object Clone()
        {
            Lava lava = new Lava((int)this.Position.X, (int)this.Position.Y, this.Width, this.Height);
            foreach (KeyValuePair<string, AnimationSprite> value in this.Animations)
            {
                lava.AddAnimation(value.Key, value.Value);
            }
            return lava;
        }

        #endregion
    }
}
